package com.suyin.ximoon.service.impl;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suyin.ximoon.dao.LyResourcesDao;
import com.suyin.ximoon.model.LyResources;
import com.suyin.ximoon.service.LyResourcesService;

@Service
@Transactional(rollbackFor = { Exception.class })
public class LyResourcesServiceImpl extends BaseServiceImpl<LyResources> implements LyResourcesService {

	private LyResourcesDao lyResourcesDao;
	@Resource
	public void setLyResourcesDao(LyResourcesDao lyResourcesDao) {
		this.lyResourcesDao = lyResourcesDao;
		setBaseDao(lyResourcesDao);
	}
	@Override
	public List<LyResources> findChildlists(HashMap<String, Object> map) {
		return lyResourcesDao.findChildlists(map);
	}
	@Override
	public List<LyResources> findRes(HashMap<String, Object> map) {
		return lyResourcesDao.findRes(map);
	}
	@Override
	public void updateSortOrder(List<LyResources> list) {
		lyResourcesDao.updateSortOrder(list);		
	}
	@Override
	public List<LyResources> findUserResourcess(String userId) {
		return lyResourcesDao.findUserResourcess(userId);
	}
}
